home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 1 Issue 2 / PDCD-1 - Issue 02.iso / _utilities / utilities / 004 / _cliguard / !CLIGuard / !Help < prev    next >
Text File  |  1994-09-24  |  15KB  |  287 lines

  1. CLI Guardian version 1.00
  2. ⌐ Sam Kington 23rd September 1994
  3. This program is freeware, *not* public domain ù i.e., I retain copyright (see
  4. öBoring legal messageò)
  5.  
  6. Terminology note
  7. ****************
  8.  
  9.    What the hell is the CLI, you may ask? And what do I mean by öCLIò?
  10.       Å öCLIò stands for Command Line Interface.
  11.       Å The CLI, under RISC OS, is the prompt you get for typing in ö*
  12.         commandsò like *Modules, *Help Commands, *Set File$Type_FFF etc.
  13.    You can get to the CLI in two ways:
  14.       Å By öshelling outò to the CLI ù i.e. pressing F12.
  15.       Å By using a task window ù i.e. pressing Ctrl-F12
  16.  
  17. What this program does
  18. **********************
  19.  
  20.    CLI Guardian, as its name suggests, provides a way of avoiding shelling
  21. out to the CLI, by making two important aspects of RISC OS desktop-friendly:
  22. module handling, and *Help handling. It provides a list of modules, that you
  23. can look at and sort in different ways, as well as doing various things to
  24. the modules (killing them, re-initialising them, loading them into RAM etc.)
  25. ù hopefully, anything you would do with modules that you had to use the CLI
  26. before, you can do with CLI Guardian. It also allows you to view *Help
  27. strings in a window, and to move, in a pseudo-hypertext fashion, between
  28. references. (If youære not sure what I mean by this, read on).
  29.  
  30.    When you run CLI Guardian, it puts an icon on the icon bar, and starts
  31. building its list of modules. The machine will multitask, but will run a bit
  32. slower, until it ₧nishes doing all this.
  33.  
  34.    The program supports interactive help, so this documentation will only
  35. cover the various aspects of the program that donæt ₧t in a small Help
  36. message.
  37.  
  38. Modules
  39. *******
  40.  
  41.    Clicking on CLI Guardianæs icon will open a list of modules to the left of
  42. the screen. By default it will be a simple list of modules, in the standard
  43. system order (i.e. ROM modules ₧rst, then RAM modules in the order they were
  44. loaded), called in this program ösort by numberò. Clicking on any of the
  45. modules will bring up a window with the various help options provided by the
  46. module; clicking on those will bring up the appropriate help message (see
  47. below). Unavailable modules (i.e. unplugged or dormant ROM modules) will be
  48. displayed in grey or in italics, depending on whether you are using the
  49. system font or not (see öChoicesò).
  50.  
  51.    Clicking MENU on the Modules window will bring up the main menu, where you
  52. can set the display options, perform the standard operations on modules,
  53. change the choices (colours, fonts, mouse clicks) and rescan the modules if
  54. they get out of synch.
  55.  
  56.    CLI Guardian knows five different things about any particular module: its
  57. öofficialò name (e.g. öColourTransò), its öfriendlyò name (e.g. öColour
  58. Selectorò), its version number (e.g. 1.07 (15 Apr 1992), its status (e.g.
  59. öROM (active)ò), and eventually a öspecialò ₧eld (often a copyright notice).
  60. You can see these in the Info box off the öModuleò submenu, or by using
  61. interactive help on the Modules window
  62.  
  63.    You can choose to display them in various combinations in the module
  64. window, by using the öDisplayò submenu, so you could have a sparse display of
  65. just official module names, or a big massive display with friendly name,
  66. status, version number and special ₧eld. The only limitation is that they
  67. must be in the order öname - status - version - specialò, and that you canæt
  68. have both sorts of names at the same time ù mainly because theyære often not
  69. very different at all.
  70.  
  71.    You can also sort the modules in various ways: sort by name (alphabetical
  72. sort, using the official name), sort by number (standard sort, ROM modules
  73. ₧rst then RAM modules in the order they were loaded) or sort by version
  74. number.
  75.  
  76.    CLI Guardian will ₧nd a list of modules quite quickly, but ₧nding out the
  77. friendly name, version etc. and sorting the modules in various ways takes
  78. longer, which is why it will do this in the background. This lets you get at
  79. the machine quicker, but it has the side-effect that, if you are quick
  80. enough, you will see that some of the options are temporarily unavailable
  81. (greyed out). Also, if you have chosen to sort the modules by version (for
  82. instance), they will be displayed sorted by number for quite a while, until
  83. CLI Guardian ₧nishes sorting them by version number. This happens when you
  84. ₧rst start CLI Guardian, or when you rescan the modules. For this reason, you
  85. are recommended to put CLI Guardian in your Boot sequence, near the end, so
  86. it can work away when you ₧rst start up your machine and be ready when you
  87. want to use it.
  88.  
  89. Help
  90. ****
  91.  
  92.    As mentioned above, clicking SELECT (by default) on the Modules window
  93. will ₧nd all the help options supplied by the module ù help on commands,
  94. con₧guration options, or other miscellaneous help ù and display them in a
  95. window. Clicking on any of these options will in turn bring up a window with
  96. the corresponding help text; clicking in that will try and ₧nd help using the
  97. words in the line of text clicked on, and so on ad in₧nitum (or rather, until
  98. you reach the limit of 16 windows).
  99.  
  100.    What is actually happening, is that when you click on a line of text, CLI
  101. Guardian passes the line to *Help, and displays the result ù even if the
  102. actual line wasnæt öintendedò to be clicked on like that. For instance, if
  103. you click on öUtilityModuleò (or öMOS Utilitiesò if you have chosen öShow
  104. friendly nameò), a rather large window will appear with a list of keywords,
  105. divided into two sections, öCommandsò and öHelp onlyò. This is nothing more
  106. than a nicer form of what you would get if you typed *Help UtilityModule from
  107. the command line. However, if you clicked on öCon₧gureò, another window would
  108. appear, with the heading öHelp on keyword Con₧gureò and a list of Con₧gure
  109. keywords provided by modules. If you go down to the keywords provided by
  110. öTerritory Mgrò, which should be something like öTerritory   DST   NODST 
  111. TimeZoneò, and click on that line, you will get a further window with four
  112. sections, öHelp on keyword Territoryò, öHelp on keyword DSTò, etc., with the
  113. appropriate help text.
  114.  
  115.    What you have here is a (rudimentary) form of hypertext. The best way to
  116. ₧nd out what you can do with it is to experiment ù for instance, clicking on
  117. the heading öCommandsò will bring up a full list of commands.
  118.  
  119.    Clicking MENU on any window other than the Modules window will bring up a
  120. smaller window, with three options, öHelpò, öCommandò and öSaveò. The ₧rst
  121. two are equivalent to clicking Select or Adjust on the window; the third
  122. brings up a Save box where you can save the contents of the windows to a ₧le
  123. or an application.
  124.  
  125.    Choosing öHelp...ò from the icon bar menu will bring up a small dialogue
  126. box where you can enter Help keywords; clicking öOKò will bring up a Help
  127. window in the usual manner.
  128.  
  129. Commands
  130. ********
  131.  
  132.    Adjust-clicking (by default) on a viewer window (that is, any window other
  133. than the Modules window) will bring up a dialogue box where you can enter a
  134. *ácommand. The window has three main parts: the öCommandò writable ₧eld,
  135. where you would enter the name of the actual command, four writable ₧elds in
  136. the öArgumentsò section, where you can enter various arguments of the
  137. command, and a set of icons.
  138.  
  139.    The window attempts to simulate both the CLI and the normal desktop way of
  140. doing things, and at the same time separate arguments. When you ₧rst enter a
  141. command, normally the window will either be blank or just have the name of a
  142. command, without arguments; the cursor will be in the öCommandò writable
  143. ₧eld, after the command (if any). The arguments ₧elds will be greyed
  144. out. Typing a space or pressing the Down arrow will move the cursor to the
  145. next ₧eld, which will be ungreyed, until you get to the last ₧eld;
  146. conversely, deleting the contents of an argument ₧eld will shift all other
  147. arguments up, and possibly grey out the last argument ₧eld.
  148.  
  149.    In addition, the öHelpò button will provide help on the command (if there
  150. isnæt any help, you might not have typed it correctly); if the command is
  151. öSetò, öSetEvalò, öSetMacroò or öCon₧gureò, the öValueò button will show you
  152. the current value of the variable or the con₧gure option you are about to
  153. change. öOKò and öCancelò perform the expected actions: öCancelò stops the
  154. whole thing, and öOKò runs the command, with the output going in a standard
  155. CLI Guardian window. The only exception is for ödangerousò commands: things
  156. like *Basic or *Debug that take over the machine, or things like *Map that
  157. take a long time ù in other words commands that donæt return almost
  158. instantaneously or depend on updating the screen regularly. There are only a
  159. few of these, but if you do try and run one of these, CLI Guardian will
  160. complain and refuse to run them.
  161.  
  162.    Finally, if you Adjust-click on a con₧guration option, CLI Guardian will
  163. insert the command öCon₧gure <option>ò, where <option> should be replaced by
  164. the name of the option, so öCon₧gureò would be in the command field and
  165. ö<option>ò in the ₧rst of the argument ₧elds.
  166.  
  167.    Choosing öCommand...ò from the icon bar menu will also bring up the
  168. window.
  169.  
  170. Choices
  171. *******
  172.  
  173.    There are various ways you can customise CLI Guardian, notably by choosing
  174. how it displays modules (see öModulesò for more details). Other choices can
  175. be set with the öChoicesò submenu: colours, fonts and mouse actions.
  176.  
  177.    CLI Guardian uses three styles in its windows: normal style, heading style
  178. and unavailable style. The normal style is applied to most text, the heading
  179. style to things like öCommandsò or öHelp on keyword Con₧gureò, the
  180. unavailable style to modules like öBBC Econetò or öJoystickò if you donæt
  181. have the appropriate hardware. How these styles behave depends on whether you
  182. are using outline fonts or not. If you are using the system font, CLI
  183. Guardian uses colours to distinguish between styles (by default, red for
  184. headings and grey for unavailable modules). If you are using outline fonts,
  185. CLI Guardian wonæt use colours; partly because non-anti-aliased fonts look
  186. ugly, and mainly because itæs a pain to do properly.
  187.  
  188.    The default fonts are Trinity.Medium for normal text,
  189. Trinity.Medium.Italic for unavailable text, and Homerton.Bold for headings.
  190. You canæt change the size because a) it would look silly, and b) itæs much
  191. easier to assume a font is a certain size. 12 point is about the same size as
  192. the System font, and as the point size of a font is a measure of its height
  193. (more or less), the lines should be spaced out correctly (well, they are on
  194. my machine, will all the fonts Iæve tried). You might get lines spilling over
  195. the edge of the window, but I suspect that would be with strange fonts like
  196. öFancyDressò. Obviously, Dingbats, MathGreek or other symbol fonts will look
  197. rather silly...
  198.  
  199.    Finally, you can change the action of various mouse clicks, assigning
  200. mouse clicks to mouse actions, by choosing öMouse clicks...ò from the
  201. öChoicesò submenu; a window will appear, with the available commands and the
  202. corresponding mouse click. For instance, if you click on the icon bar icon,
  203. you can open the Modules window, enter a Help keyword, or enter a * command;
  204. clicking on a window can search for help on the chosen line, use that line as
  205. a command, bring up a save box or close the window. Obviously, with several
  206. commands available and only two mouse buttons, you have to use Shift, Ctrl or
  207. maybe even Alt if you want to be able to do all these things with the mouse,
  208. so you can choose which ones are the most important to you.
  209.  
  210.    You can save these choices, cancel changes, and revert to default settings
  211. with the menu.
  212.  
  213. Bug warning
  214. ***********
  215.  
  216.    Because I haven't had time to fully test this program, there may
  217. occasionally be a few bugs left. I havenæt found anything that will bring
  218. down the whole machine, and in normal use the program seems pretty stable;
  219. itæs only when you try and do strange things that it falls down occasionally.
  220.  
  221. Boring legal message
  222. ********************
  223.  
  224.    This application is freeware, that is, it can be distributed freely as
  225. long as only reasonable charges are made for media and distribution. I retain
  226. copyright on all program code and documentation.
  227.  
  228.    This software is supplied öasáisò: I make no warranty, expressed or
  229. implied, of the merchantability of this software or its ₧tness for any
  230. particular purpose. In no circumstances shall I be liable for any damage,
  231. loss of pro₧ts, or any indirect or consequential loss arising out of the use
  232. of this software or inability to use this software, even if I have been
  233. advised of the possibility of such loss.
  234.  
  235.    In other words, if your computer crashes, blows up, you lose all your work
  236. etc. all because of CLI Guardian (unlikely I know), donæt blame me.
  237.  
  238. About all these strange foreign characters in this ₧le
  239. *******************************************************
  240.  
  241.    OK, so if youære reading this on a PC or a Mac or another strange machine
  242. like that, you may be wondering what all these strange ae things are. Well,
  243. theyære quotes (sorry, there was another one), dashes, ligatures, etc.
  244. Honest. But not on all machines...
  245.    Basically, character sets are only standard up to character 127, which is
  246. basically alphanumerics and a few standard punctuation marks. Foreign
  247. characters, typographical oddities like quotes and ligatures, and other more
  248. obscure symbols are önon-standardò, and each computer often has its own idea
  249. of where they should go in the character set. So donæt worry: even if itæs
  250. hard to read on your current machine, it wonæt be on an Acorn machine. It may
  251. look slightly strange if youære using the System font, however.
  252.    But why am I using these strange characters in the ₧rst place? Well,
  253. theyære in the character set and they look nice in an outine font, and Iæve
  254. written a program called Smart Quotes (sorry for the plug) that substitutes
  255. these sort of characters automatically, and Iæve got it turned on at the
  256. moment...
  257.  
  258. How to contact me
  259. *****************
  260.  
  261. All bug-reports, suggestions, comments or indeed any feedback at all will be
  262. welcomed. Hereæs how to get to me:
  263.  
  264. E-mail     : 9262861k@arts.gla.ac.uk, 926286ki@udcf.gla.ac.uk during term-time
  265.              These should be OK until June 1996
  266.              At Christmas, Easter and during the summer, you can get me at
  267.              wombat@altern.com, wombat@email.teaser.com or sam@altern.com, in order
  268.              of preference (that is, if mail bounces off one of these or I donæt
  269.              answer within a week send to the next one).
  270.  
  271. Snail-mail : My term-time address, at least until June 1995, is:
  272.              Sam Kington
  273.              Flat 2/1
  274.              44 Hotspur Street
  275.              Glasgow G20 8NL
  276.              SCOTLAND
  277.              
  278.              Again, a backup is the home address ù anything that goes here will get
  279.              to me eventually.
  280.              Sam Kington
  281.              Merlhiot
  282.              24420 Savignac les Eglises
  283.              FRANCE
  284.  
  285. Term-time is October to June, with bits off at Christmas (3 weeks) and
  286. Easter (4 weeks).
  287.